package kr.hkit.powerjava.chapter11.submit;

class UnderGraduate extends Student {

	String clubName;

	public UnderGraduate(String stdName, int stdnum, String stdMajor,
			int stdGrade, int stdCredit, String clubName) {
		super(stdName, stdnum, stdMajor, stdGrade, stdCredit);
		this.clubName = clubName;
	}

	@Override
	public String toString() {
		return "학부생 [성명=" + stdName + ", 학번=" + stdnum + ", 학과=" + stdMajor
				+ ", 학년=" + stdGrade + ", 이수학점=" + stdCredit + ", 동아리명="
				+ clubName + "]";
	}

	public static void main(String[] args) {
		UnderGraduate under = new UnderGraduate("추지영", 2061342, "국통", 4, 140,
				"천마단");
		UnderGraduate under2 = new UnderGraduate("홍길동", 2071342, "경영", 3, 145,
				"학생회");

		System.out.println(under);
		System.out.println(under2);
	}
}
